my_list=['黑马程序员','传智播客','黑马程序员','传智播客','itheima','itcast','itheima','itcast','best']

i=0
my_set=set()
while i<len(my_list):
    my_set.add(my_list[i])
    i+=1

print(my_set)